﻿@model List<NOAH.CMS.Repository.NewsArticle>
@using NOAH.CMS.Repository;
@{
    NewsCategory category = (NewsCategory)ViewBag.NewsCategory;
}

<br />
<br />
<div id="newsListPage">
    <div class="pattern-box">
        <h1 class="pageTitle">
            <a href="@category.SEOLink" style="color: #3555A5; text-decoration: none;">@category.Name</a></h1>
        <div class="clear"></div>
        <div style="width: 700px; border-right: 2px dashed #0E76BC; padding-right: 20px;">
            @{
                foreach (NewsArticle n in Model)
                {
                <text>
                <div class="news_page_item" style="clear: both;">
                    <div class="news_page_thumbs">
                        <a href="@n.SEOLink">
                            <img  src="@n.Image?w=189"></a>
                    </div>
                    <div class="news_page_copy">
                        <a class="title" href="@n.SEOLink">@n.Name</a><div class="clearfix">&nbsp;</div>
                        <p>
                            @n.ShortContent
                        </p>

                    </div>
                    <div class="clearfix">&nbsp;</div>
                </div>
                <div class="clearfix" style="clear: both;">&nbsp;</div>

                </text>
                }
            }
        </div>
    </div>
</div>

<div class="pagging">
    @Html.Pager((int)ViewBag.Count, (int)ViewBag.PageSize)
</div>
